<template>
    <div class="filter-container">
       <el-input style="width: 200px;" class="filter-item" :placeholder="$t('table.userType.id')" v-model="listQuery.id">
      </el-input>
       <el-input style="width: 200px;" class="filter-item" :placeholder="$t('table.userType.name')" v-model="listQuery.name">
      </el-input>
       <el-input style="width: 200px;" class="filter-item" :placeholder="$t('table.userType.typeKey')" v-model="listQuery.typeKey">
      </el-input><el-button class="filter-item" type="primary" v-waves icon="el-icon-search" @click="handleQuery">{{$t('table.search')}}</el-button>
      <el-button class="filter-item" style="margin-left: 10px;" @click="createHandle" type="primary" icon="el-icon-edit">{{$t('table.add')}}</el-button>    
    </div>
</template>
<script>
import waves from '@/directive/waves'
export default {
  name: 'userTypeQuery',
  props: ['createHandle', 'queryHandle'],
  directives: {
    waves
  },
  data() {
    return {
      listQuery: {},
      importanceOptions: [1, 2, 3]
    }
  },
  methods: {
    handleQuery() {
      this.queryHandle(this.listQuery)
    }
  }
}
</script>

